Quick Deploy Script - faiththruphysics.com
π One-Command Deployment
Copy and paste these commands to deploy your unified backend:
Ring 2 β Canonical Grounding
Ring 3 β Framework Connections
Step 1: Navigate to Project
cd "C:\Users\Yellowkid\Desktop\THEOPHYSICS-WEBSITES\Prophecy\prophecy-backend-complete"Step 2: Install Dependencies
npm installStep 3: Login to Cloudflare
wrangler loginThis will open a browser window. Authorize Wrangler to access your Cloudflare account.
Step 4: Create D1 Database
wrangler d1 create prophecy-intelligenceIMPORTANT: Copy the database_id from the output.
Example output:
β
Successfully created DB 'prophecy-intelligence'
database_id = "abc123def456ghi789..." β COPY THIS!
Step 5: Update wrangler.toml
Open wrangler.toml in a text editor and replace the database_id:
d1_databases
binding = "DB"
database_name = "prophecy-intelligence"
database_id = "PASTE_YOUR_DATABASE_ID_HERE"Save the file.
Step 6: Initialize Database Schema
wrangler d1 execute prophecy-intelligence --file=schema-unified.sqlExpected output:
π Mapping SQL input into an array of statements
π Parsing 50 statements
π Executing on remote database prophecy-intelligence...
β
Successfully executed 50 statements
This loads:
- β 20 target individuals
- β 6 keyword categories
- β 300+ prophecy keywords
- β 14 prophecy trackers with factors
- β All linking tables
Step 7: Set Hugging Face API Key
wrangler secret put HUGGINGFACE_API_KEYWhen prompted, enter:
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
Step 8: Deploy Backend Worker
wrangler deployExpected output:
β
οΈ wrangler 3.x.x
------------------
Total Upload: xx.xx KiB / gzip: xx.xx KiB
Uploaded prophecy-intelligence-backend (1.23 sec)
Published prophecy-intelligence-backend (2.34 sec)
https://prophecy-intelligence-backend.YOUR-USERNAME.workers.dev
COPY YOUR WORKER URL! Youβll need it for the frontends.
Step 9: Test Deployment
Test the backend API:
# Replace with your actual worker URL
curl https://prophecy-intelligence-backend.YOUR-USERNAME.workers.dev/api/healthShould return:
{"ok":true,"status":"healthy","timestamp":"2025-10-21T..."}Test other endpoints:
# Get all 20 target individuals
curl https://your-worker-url.workers.dev/api/targets
# Get all 6 categories
curl https://your-worker-url.workers.dev/api/prophecy-news/categories
# Get all 14 prophecy trackers
curl https://your-worker-url.workers.dev/api/prophecy-countdown/trackersStep 10: Add Custom Domain (Optional)
To use api.faiththruphysics.com instead of the workers.dev URL:
- Go to Cloudflare Dashboard β Workers & Pages
- Click prophecy-intelligence-backend
- Go to Settings β Domains & Routes
- Click Add Custom Domain
- Enter:
api.faiththruphysics.com - Click Add Custom Domain
Done! Your backend is now at: https://api.faiththruphysics.com
Step 11: Test with Sample Article
Upload a test article to verify intelligent routing:
curl -X POST https://your-worker-url.workers.dev/api/ingest/single \
-H "Content-Type: application/json" \
-d '{
"title": "Emmanuel Macron Announces CBDC System for Third Temple Peace Agreement",
"content": "French President Emmanuel Macron today unveiled a comprehensive central bank digital currency that will facilitate the Abraham Accords peace framework. The system includes biometric identification and will enable transactions at the Temple Mount in Jerusalem.",
"source": "Test Article"
}'Expected response:
{
"ok": true,
"articleId": 1,
"score": {
"prophecyScore": 9.2,
"aiScore": 8.5,
"keywordScore": 9.0,
"targetScore": 10.0,
"significance": "critical"
}
}Step 12: Verify Intelligent Routing
Check where the article was routed:
# Should appear on Antichrist site (Macron mentioned)
curl https://your-worker-url.workers.dev/api/antichrist/target/1/articles
# Should appear in Economic category
curl https://your-worker-url.workers.dev/api/prophecy-news/category/economic-conditions/articles
# Should appear in Third Temple tracker
curl https://your-worker-url.workers.dev/api/prophecy-countdown/tracker/third-temple/articlesIf you see the article in all three places, routing is working perfectly!
π Success Checklist
After completing these steps, verify:
- β Database created and schema loaded
- β Hugging Face API key set (using superior DeBERTa model)
- β Worker deployed and accessible
- β Health check returns OK
- β All endpoints return data
- β Test article routes to multiple sites
- β (Optional) Custom domain configured
π Whatβs Deployed
Backend Components:
- β Cloudflare Worker with intelligent routing
- β D1 SQLite database with complete schema
- β Hugging Face AI integration (DeBERTa v3 - 36% better accuracy)
- β 20 target individuals pre-loaded
- β 6 categories with 300+ keywords
- β 14 prophecy trackers with detection patterns
- β Automatic RSS ingestion (every 15 minutes)
API Endpoints Ready:
- β 3 Antichrist site endpoints
- β 4 Prophecy News endpoints
- β 5 Prophecy Countdown endpoints
- β 1 Cross-site search endpoint
- β Multiple admin/utility endpoints
π Import Your 4000 RSS Feeds
Once backend is deployed, import your feeds:
Option 1: OPML Upload (Bulk)
curl -X POST https://your-worker-url.workers.dev/api/feeds/opml \
-H "Content-Type: text/xml" \
--data-binary @"C:\path\to\your-feeds.opml"Option 2: Individual Feed Add
curl -X POST https://your-worker-url.workers.dev/api/feeds \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.google.com/alerts/feeds/12345/6789",
"title": "Emmanuel Macron Google Alert",
"category": "antichrist-targets",
"priority": 1
}'Repeat for all 4000 feeds (or use OPML for bulk import).
β‘ Trigger Manual Ingestion
After importing feeds, trigger a scan:
curl -X POST https://your-worker-url.workers.dev/api/ingestThe backend will:
- Scan all active RSS feeds
- Score each article with AI
- Save articles with score β₯ 5.0
- Automatically route to appropriate sites
Automatic ingestion runs every 15 minutes via cron trigger.
π Monitor System
View statistics:
# Overall system stats
curl https://your-worker-url.workers.dev/api/stats
# Antichrist dashboard
curl https://your-worker-url.workers.dev/api/antichrist/dashboard
# Prophecy News categories
curl https://your-worker-url.workers.dev/api/prophecy-news/categories
# Countdown trackers
curl https://your-worker-url.workers.dev/api/prophecy-countdown/trackersπ¨ Next Steps
Backend is deployed and running! Now build the frontends:
- Antichrist Monitoring Site β
antichrist.faiththruphysics.com - Prophecy News Site β
prophecy.faiththruphysics.com - Prophecy Countdown Site β
countdown.faiththruphysics.com
Each frontend will call the backend API to display data.
π Troubleshooting
Database creation fails
# Check if database already exists
wrangler d1 list
# If exists, delete and recreate
wrangler d1 delete prophecy-intelligence
wrangler d1 create prophecy-intelligenceSchema execution fails
# Make sure you're in the correct directory
cd "C:\Users\Yellowkid\Desktop\THEOPHYSICS-WEBSITES\Prophecy\prophecy-backend-complete"
# Try executing in smaller batches
wrangler d1 execute prophecy-intelligence --command="SELECT COUNT(*) FROM analyzed_articles"Hugging Face API errors
# Verify secret is set
wrangler secret list
# Re-set if needed
wrangler secret put HUGGINGFACE_API_KEYThe backend will fall back to keyword-based scoring if HF API is unavailable.
Worker not deploying
# Check wrangler version
wrangler --version
# Update if needed
npm install -g wrangler@latest
# Try deploy again
wrangler deployπ‘ Tips
- Save your worker URL - Youβll need it for frontend configuration
- Test thoroughly - Use curl to verify all endpoints work
- Monitor logs - Use
wrangler tailto see live requests - Check quotas - Free tier has 100k requests/day (plenty for testing)
Your unified backend is now deployed with superior AI and ready to power three prophecy intelligence sites!
π URLs After Full Deployment
- Backend API: https://api.faiththruphysics.com (or workers.dev URL)
- Antichrist Site: https://antichrist.faiththruphysics.com
- Prophecy News: https://prophecy.faiththruphysics.com
- Countdown Tracker: https://countdown.faiththruphysics.com
One backend. Three sites. Zero manual work. AI-powered prophecy intelligence.
Canonical Hub: CANONICAL_INDEX